package org.example.cli.patern;

/**
 * 远程控制器
 * @author ricejson
 */
public class RemoteController {
    private Command command; // 命令

    public void setCommand(Command command) {
        this.command = command;
    }

    public void operate(Device device) {
        command.execute(device);
    }
}
